package com.pureman.androidapp.exception;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.pureman.androidapp.R;

public class ExceptionActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exception);

//        // 注册默认的未捕捉异常处理类
//        Thread.setDefaultUncaughtExceptionHandler(AppException.getAppExceptionHandler());
//        AppManager.getAppManager().addActivity(this);
    }

    public void onClick(View view) {
        // 除零错误，程序会崩溃
//        int c = 1 / 0;
    }
}
